<template>
  <div>
      <p>{{ count }}</p>
      <button v-on:click="count = count +1" >+1</button>
      <button v-on:click="add">+1</button>
      <button @click="add5(5)">+5</button>
  </div>
</template>

<script>
export default {
data(){
    return {
        count:0
    }
},
methods:{
add(){  
    // console.log(this)   ;
    this.count--
},
add5(n){
this.count+=n
}
}
}
</script>

<style>

</style>